package com.tencent.examples.blueking.mongo.repository;

import com.tencent.examples.blueking.mongo.model.ObjDes;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.query.QueryByExampleExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ObjDesRepository extends MongoRepository<ObjDes, String>, QueryByExampleExecutor<ObjDes> {

    @Query("{ 'bk_classification_id' : ?0 }")
    List<ObjDes> findSecondMenu(String bk_classification_id);
}
